//
//  VisitorRigisterModel.h
//  ppkc2016
//
//  Created by 拼凑的断音 on 16/3/23.
//  Copyright © 2016年 拼凑的断音. All rights reserved.
//

#import "NormalReturnModel.h"
#import "XXTool.h"

typedef enum : NSUInteger {
    VisitorRigisterUsePhone=0,
    VisitorRigisterUseEmail,
} VisitorRigisterUseWay;

@interface VistorRigiterUseDataModel : NSObject

@property (nonatomic,strong) NSString* areaCode; /** < 区号*/

@property (nonatomic,strong) NSString* phoneNumberOrEmail; /**< 传入的邮箱或者手机号*/

@property (nonatomic,assign) VisitorRigisterUseWay way;

@property (nonatomic,strong) NSString* password; /**< 密码*/

@property (nonatomic,strong) NSString* verifyCode; /**< 验证码*/

@property (nonatomic,strong) NSString* regtype; /**< 改协议请求是注册还是修改密码*/

@end


@interface VisitorRigisterModel : NormalReturnModel

@property (nonatomic,strong) NSString * userid;

@property (nonatomic,strong) NSString * head_img;   /**< 头像URL地址 */

@property (nonatomic,strong) NSString * cpname;	  /**< 公司名 */

@property (nonatomic,strong) NSString * username;	/**< 姓名 */

@property (nonatomic,strong) NSString * password;	/**< \密码 */

/**
 *  观众获取验证码
 *
 *  @param Data  data
 *  @param block block
 */
+(void)visitorRegisterDidClickWithNeedData:(VistorRigiterUseDataModel*)data completion:(void(^)(BOOL isSuccess))block;

/**
 *  观众手机注册（密码修改）/邮箱修改密码
 *
 *  @param rigister rigister
 *  @param block    block
 */
+(void)submitRegistrationOrChangePassWord:(VistorRigiterUseDataModel*)rigister completion:(void(^)(BOOL isSuccess))block;

/**
 *  观众邮箱注册
 *
 *  @param rigister rigister
 *  @param block    block
 */
+(void)mailSubmitRegister:(VistorRigiterUseDataModel*)rigister completion:(void(^)(BOOL isSuccess))block;

/**
 *  观众登录
 *
 *  @param login 数据
 *  @param block block
 */
+(void)vistorLogin:(VistorRigiterUseDataModel*)login completion:(void(^)(BOOL isSuccess))block;

/**
 *  展商登录
 *
 *  @param login 数据
 *  @param block block
 */
+(void)exhibitorLogin:(VistorRigiterUseDataModel*)login completion:(void(^)(BOOL isSuccess))block;

@end
